# -*- coding: utf-8 -*-

# Define here the models for your scraped items

from scrapy import Item, Field


class RawResponseItem(Item):
    appid = Field()
    crawlid = Field()
    url = Field()
    response_url = Field()
    status_code = Field()
    status_msg = Field()
    response_headers = Field()
    request_headers = Field()
    body = Field()
    links = Field()
    attrs = Field()
    success = Field()
    exception = Field()


class HospitalItem(Item):
    appid = Field()
    crawlid = Field()
    # 医生网址
    hospital_link = Field()
    # 医生姓名
    hospital_name = Field()
    # 医生性别
    hospital_address = Field()
    # 医生职位
    hospital_phone = Field()
    # 医生医院
    hospital_grade = Field()
    # 医生科室
    hospital_type = Field()
    # 医生擅长
    hospital_introduction = Field()
    # 医生简介
    hospital_department = Field()



#问答参数
class AskItem(Item):
    #问题网址
    ask_link = Field()
    #w问题id
    ask_id = Field()
    #问题标题
    ask_title = Field()
    #患者信息
    ask_pat = Field()
    #发布时间
    ask_time = Field()
    #问题内容
    ask_content = Field()
    #回答情况
    ask_sit = Field()
    #医生信息
    doctor_info = Field()
    #回答内容
    doctor_answer = Field()
    #回答时间
    doctor_time = Field()
    #问题科室
    ask_department = Field()